﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011F5 RID: 4597
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartAetherDivideChallengeBattleScRsp : IMessage<StartAetherDivideChallengeBattleScRsp>, IMessage, IEquatable<StartAetherDivideChallengeBattleScRsp>, IDeepCloneable<StartAetherDivideChallengeBattleScRsp>, IBufferMessage
	{
		// Token: 0x17003A3A RID: 14906
		// (get) Token: 0x0600CDF7 RID: 52727 RVA: 0x0022AD1F File Offset: 0x00228F1F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartAetherDivideChallengeBattleScRsp> Parser
		{
			get
			{
				return StartAetherDivideChallengeBattleScRsp._parser;
			}
		}

		// Token: 0x17003A3B RID: 14907
		// (get) Token: 0x0600CDF8 RID: 52728 RVA: 0x0022AD26 File Offset: 0x00228F26
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartAetherDivideChallengeBattleScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003A3C RID: 14908
		// (get) Token: 0x0600CDF9 RID: 52729 RVA: 0x0022AD38 File Offset: 0x00228F38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartAetherDivideChallengeBattleScRsp.Descriptor;
			}
		}

		// Token: 0x0600CDFA RID: 52730 RVA: 0x0022AD3F File Offset: 0x00228F3F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartAetherDivideChallengeBattleScRsp()
		{
		}

		// Token: 0x0600CDFB RID: 52731 RVA: 0x0022AD48 File Offset: 0x00228F48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartAetherDivideChallengeBattleScRsp(StartAetherDivideChallengeBattleScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CDFC RID: 52732 RVA: 0x0022AD94 File Offset: 0x00228F94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartAetherDivideChallengeBattleScRsp Clone()
		{
			return new StartAetherDivideChallengeBattleScRsp(this);
		}

		// Token: 0x17003A3D RID: 14909
		// (get) Token: 0x0600CDFD RID: 52733 RVA: 0x0022AD9C File Offset: 0x00228F9C
		// (set) Token: 0x0600CDFE RID: 52734 RVA: 0x0022ADA4 File Offset: 0x00228FA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003A3E RID: 14910
		// (get) Token: 0x0600CDFF RID: 52735 RVA: 0x0022ADAD File Offset: 0x00228FAD
		// (set) Token: 0x0600CE00 RID: 52736 RVA: 0x0022ADB5 File Offset: 0x00228FB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AetherDivideBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x0600CE01 RID: 52737 RVA: 0x0022ADBE File Offset: 0x00228FBE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartAetherDivideChallengeBattleScRsp);
		}

		// Token: 0x0600CE02 RID: 52738 RVA: 0x0022ADCC File Offset: 0x00228FCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartAetherDivideChallengeBattleScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.BattleInfo, other.BattleInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CE03 RID: 52739 RVA: 0x0022AE1C File Offset: 0x0022901C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CE04 RID: 52740 RVA: 0x0022AE71 File Offset: 0x00229071
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CE05 RID: 52741 RVA: 0x0022AE79 File Offset: 0x00229079
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CE06 RID: 52742 RVA: 0x0022AE84 File Offset: 0x00229084
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.BattleInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CE07 RID: 52743 RVA: 0x0022AEE0 File Offset: 0x002290E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CE08 RID: 52744 RVA: 0x0022AF38 File Offset: 0x00229138
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartAetherDivideChallengeBattleScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new AetherDivideBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CE09 RID: 52745 RVA: 0x0022AFA0 File Offset: 0x002291A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CE0A RID: 52746 RVA: 0x0022AFAC File Offset: 0x002291AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.battleInfo_ == null)
					{
						this.BattleInfo = new AetherDivideBattleInfo();
					}
					input.ReadMessage(this.BattleInfo);
				}
			}
		}

		// Token: 0x0400529F RID: 21151
		private static readonly MessageParser<StartAetherDivideChallengeBattleScRsp> _parser = new MessageParser<StartAetherDivideChallengeBattleScRsp>(() => new StartAetherDivideChallengeBattleScRsp());

		// Token: 0x040052A0 RID: 21152
		private UnknownFieldSet _unknownFields;

		// Token: 0x040052A1 RID: 21153
		public const int RetcodeFieldNumber = 14;

		// Token: 0x040052A2 RID: 21154
		private uint retcode_;

		// Token: 0x040052A3 RID: 21155
		public const int BattleInfoFieldNumber = 2;

		// Token: 0x040052A4 RID: 21156
		private AetherDivideBattleInfo battleInfo_;
	}
}
